<?php 

//echo realpath('./adm/upload');
date_default_timezone_set("Asia/Shanghai");
//echo  date("sihdmY");

$avaliableTypes = 'jpg,jpeg,gif,png';

$result = explode('jpg',$avaliableTypes);
echo sizeof($result);
?>